package com.autonavi.yunda.yunji.core.model.dto;

import com.autonavi.yunda.yunji.core.enums.DatasourceType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("yunji_datasource_config")
public class DatasourceConfigDTO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String dbname;
    private String description;
    private DatasourceType type;
    private String config;
    @TableField("create_time")
    private Timestamp createTime;
    @TableField("update_time")
    private Timestamp updateTime;
    @TableField("create_user")
    private String createUser;
    @TableField("update_user")
    private String updateUser;
    @TableField("is_deleted")
    private String isDeleted;
}
